import { defineUserConfig, defaultTheme }  from "vuepress";

export default defineUserConfig({


  title: 'Hello VuePress',
  port: "8089",
  description: 'Just playing around',

  /**
   * Type is `DefaultThemeConfig`
   */
  theme:defaultTheme({
    repo: "vuejs/vuepress",
    editLinks: true,
    docsDir: "packages/docs/docs",
	  navbar: [{
                text: '首页',
                link: '/'
            },
            {
                text: '作者',
                link: '/about.md'
            },
            {
                text: 'Gitee仓库',
                link: 'https://gitee.com/wuluan/vuepress-starter'
            }
        ],
    sidebar: [
      '/intro.md',
      {
        text: '第一章：xxxx',
        link: "/docs/summary.md",
        collapsable: false,
        sidebarDepth: 1,
        children: [
            {
                text: '1.1 xxx的子章节',
                link: '/docs/development.md',
                children: [
                    '/docs/devops.md',
                ]
            },
            '/docs/history.md',
            '/docs/conclusion.md'  
        ]
      },
      {
        text: '第二章：yyyy',
        link: "/docs2/secend.md",
        collapsable: false,
        sidebarDepth: 1,
        children: [
            '/docs2/aaa.md',
            '/docs2/bbb.md', 
            {
              text: '2.3 子章节ccc',
              link: '/docs2/ccc.md',
              children: [
                '/docs2/cccc1.md',
                '/docs2/cccc2.md',
            ]
            },
            '/docs2/ddd.md',  
        ]
      }

    ]

   })



});
